import 'package:flutter/material.dart';

class ArticleTag extends StatelessWidget {
  final String text;
  final Color color;

  ArticleTag(this.text,{this.color});

  @override
  Widget build(BuildContext context) {
    var themeColor = color ?? Theme.of(context).accentColor;
    return new Container(
      decoration: BoxDecoration(
        border: Border.all(
            width: 1,color:themeColor
        ),
      ),
      padding: EdgeInsets.symmetric(vertical: 0.5,horizontal: 3),
      margin: EdgeInsets.only(right: 5),
      child: Text(text,style: TextStyle(color: themeColor,fontSize: 10),),
    );
  }
}